package exercise;

/**
 * @author shkstart
 * @date 2022/4/21 - 16:42
 */
public class Person {
    String name;
    int age;
/**
 *  sex:1是男性
 *  sex:0是女性
* */
    int sex;

    public void studay() {
//        age = 18;
//        name = "李华";
//        sex = 1;
//        思路理解错误
        System.out.println("studying");

    }

    public void showAge() {

        System.out.println("age:" + age);
    }

    public int addAge(int i) {
        age += i;
        return age;
    }

}
